﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Admin.master" AutoEventWireup="true" CodeFile="LoaiSanPham.aspx.cs" Inherits="Admin_LoaiSanPham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="formBox">

    <h2>Loại sản phẩm</h2>
    <div class = "alignR">
        <asp:HyperLink ID="HyperLink5" runat="server" 
            NavigateUrl="~/Admin/LoaiSanPhamThem.aspx">Thêm mới</asp:HyperLink>
    </div>
    <br />
    <p>
        <asp:Label ID="lbThongBao" runat="server"></asp:Label>
    </p>
    <div>
        <asp:GridView ID="gvLoaiSanPham" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            onrowcancelingedit="gvLoaiSanPham_RowCancelingEdit" 
            onrowcreated="gvLoaiSanPham_RowCreated" 
            onrowdeleting="gvLoaiSanPham_RowDeleting" 
            onrowediting="gvLoaiSanPham_RowEditing" 
            onrowupdating="gvLoaiSanPham_RowUpdating">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="MaLoai" HeaderText="Mã loại" />
                <asp:BoundField DataField="TenLoai" HeaderText="Tên loại" />
                <asp:BoundField DataField="MaNhaSanXuat" HeaderText="Mã nhà sản xuất" />
                <asp:BoundField DataField="BiDanh" HeaderText="Bí danh" />
                <asp:CommandField HeaderText="Chức năng" ShowDeleteButton="True" 
                    ShowEditButton="True" />
            </Columns>
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
    </div>

</div>
</asp:Content>

